package thread.java20221201;

/**
 * 匿名内部类的方式, 创建Thread子类
 */
public class Demo4 {
    public static void main(String[] args) {
        Thread thread = new Thread(){
            @Override
            public void run() {
                System.out.println(4444);
            }
        };

        thread.start();
    }
}
